package com.qsw.refreshrecyclerview.RefreshRecyclerView.listener;

import android.view.View;

/**
 * RecyclerView被点击的回调
 */
public abstract class OnItemClickListener {
    /**
     * 核心数据被单击
     *
     * @param view     点击View
     * @param position 点击的索引
     */
    public abstract void onClick(View view, int position);

    /**
     * 核心数据被长按
     *
     * @param view     长按View
     * @param position 长按的索引
     */
    public void onLongClick(View view, int position) {
    }

    /**
     * 头部被单击
     *
     * @param view     点击View
     * @param position 点击的索引
     */
    public void onHeaderClick(View view, int position) {
    }

    /**
     * 头部被长按
     *
     * @param view     长按View
     * @param position 长按的索引
     */
    public void onHeaderLongClick(View view, int position) {
    }

    /**
     * 尾部被单击
     *
     * @param view     点击View
     * @param position 点击的索引
     */
    public void onFooterClick(View view, int position) {
    }

    /**
     * 尾部被长按
     *
     * @param view     长按View
     * @param position 长按的索引
     */
    public void onFooterLongClick(View view, int position) {
    }
}
